import { configureStore } from '@reduxjs/toolkit'
import adminReducer from './slices/admin.ts'
import staffReducer from './slices/staff.ts'


export const store = configureStore({
    reducer: {
        admin: adminReducer,
        staff: staffReducer
    },
})


// console.log(store.getState());



export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch